Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CreatePipelineConfigurationParameters model #402

Open
wants to merge 325 commits into
base: dev
Choose a base branch
from

Conversation

mel-cdn
Copy link

@mel-cdn mel-cdn commented Feb 14, 2022

In the current state, I'm receiving below error when using the create_pipeline since the serialized payload is not correct.
"This API does not support creating pipelines of configuration type Yaml."

Update the model required to create new pipeline.

tedchamb added 30 commits May 8, 2018 15:39
 regenerate after fix for byte array data
fix git get_commit_diffs query parameters
regen 4.1 apis after fix to include 'action' in route dictionary.
regen 4.0 apis after fix to include 'action' in route dictionary.
…point,Symbol, Wiki, WIT Process, WIT Process Def, WIT Process Template
Add new 4.0 and 4.1 REST areas: CLT, Graph, MEM, Profile, Service Endpoint, Symbol, Wiki, WIT Process, WIT Process Def, WIT Process Template
change release_trigger_base into a property bag.
… which is intended to only be used to make s2s calls.
add Members Entitlement Management to manage users. remove user area,…
tedchamb and others added 27 commits October 19, 2019 11:17
fix issue microsoft#280, fix naming of upack_api_client folder:  universal becomes upack_api
…if it does not exist at the organization level.
…would have happened if we were already using a deployment url.
Fix for issue microsoft#289 - check for location at deployment level if it does not exist at the organization level.
Regenerate after fixing float type handling in generator
* fix for issue microsoft#354

* catch OSError instead of FileExistsError, since FileExistsError is not available in python 2.7
* fix for issue microsoft#354

* catch OSError instead of FileExistsError, since FileExistsError is not available in python 2.7

* Revert "update apis to match 6.0 RTW"

This reverts commit 5428142.

* regen 6.0 as preview

* bump version
In the current state, I'm receiving below error when using the create_pipeline since the serialized payload is not correct.
"This API does not support creating pipelines of configuration type Yaml."

Update the model required to create new pipeline.
@tonybaloney
Copy link
Collaborator

This field might be case sensitive, did you try lower case yaml?

https://learn.microsoft.com/en-us/rest/api/azure/devops/pipelines/pipelines/create?view=azure-devops-rest-6.0#configurationtype

Also path and repository are not parameters in that model for v6.0. Which server did you generate the model code from?

https://learn.microsoft.com/en-us/rest/api/azure/devops/pipelines/pipelines/create?view=azure-devops-rest-6.0#createpipelineconfigurationparameters

Was it on-prem or Azure DevOps, and which version?

@GarrettGeorge
Copy link

Even Azure's own documentation is wildly out of date here.

The current HTTP body schema I've found for 7.0 guaranteed to work for the endpoint referenced in the docs above

"name": "pipeline-name",
"configuration": {
    "type": "yaml",
    "path": "pipline.yaml",
    "repository": {
        "id": "my-repo-guid",
        "type": "azureReposGit",
        "name": "repo-name"
    }
},
"folder": "path/to/my/pipeline",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants